package fristphase.submarinegame08complete;

import javax.swing.*;

public class Mine extends SeaObject {
    public Mine(int x,int y){
        super(20,20,x,y,3,"水雷");
    }
    public void move(){
        y -= speed;
    }
    public ImageIcon getImage(){
        return Images.mine;
    }
    public boolean isOutOfBounds(){
        return  y<=150-height;
    }
}
